import request from '@/utils/request'

// # 手术报到 开始
// 手术病人列表信息(待手术/历史病人)
export function patientList(query) {
  return request({
    url: '/patient/page/list',
    method: 'get',
    params: query
  })
}

export function getHisPage(query) {
  return request({
    url: '/patient/page/his/list',
    method: 'get',
    params: query
  })
}

// 手术报到(获取详情)
export function preoperativeConfirmation(query) {
  return request({
    url: '/patient/operator/report',
    method: 'get',
    params: query
  })
}
// 更新手术报到
export function insertConfirmRecord(query) {
  return request({
    url: '/patient/insert/confirm/record',
    method: 'post',
    data: query
  })
}
// 退出日间
export function cancelDaySurgery(query) {
  return request({
    url: '/patient/cancel/daySurgery',
    method: 'post',
    data: query
  })
}

// 出院评估列表
export function dischargeAssessmentList(query) {
  return request({
    url: '/patient/discharge/assessment/list',
    method: 'get',
    params: query
  })
}

export function addAssessment(query) {
  return request({
    url: '/patient/add/assessment',
    method: 'post',
    data: query
  })
}

export function updateAssessment(query) {
  return request({
    url: '/patient/update/assessment',
    method: 'post',
    data: query
  })
}

// 获取评估详情
export function getAssessmentDetail(query) {
  return request({
    url: '/patient/assessment/detail',
    method: 'get',
    params: query
  })
}

export function revokeOutHospital(query) {
  return request({
    url: '/patient/revoke/out/hospital',
    method: 'post',
    data: query
  })
}

export function sendSms(query) {
  return request({
    url: '/patient/sms',
    method: 'post',
    data: query
  })
}
